from nonebot import on_command
from nonebot.adapters.onebot.v11 import MessageEvent

test = on_command("copy")

@test.handle()
async def handle_test(event: MessageEvent):
    # 获取消息内容
    msg = event.get_message()
    # 获取发送者 QQ 号
    user_id = event.get_user_id()

    await test.finish(msg + " from " + user_id)
